package com.ltt.service.impl;

import com.ltt.dao.pojo.UserAnswer;
import com.ltt.dao.vo.params.AnswerParams;
import com.ltt.mapper.UserAnswerMapper;
import com.ltt.service.UserAnswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ‘李天泰’
 * @version 1.0
 * @description: TODO
 * @date 2023/5/3 16:08
 */
@Service
public class UserAnswerServiceImpl implements UserAnswerService {

    @Autowired
    private UserAnswerMapper userAnswerMapper;

    @Override
    public UserAnswer getUserAnswer(AnswerParams answerParams) {
        return userAnswerMapper.getUserAnswer(answerParams);
    }

    @Override
    public void insertUserAnswer(UserAnswer userAnswer) {
        userAnswerMapper.insertUserAnswer(userAnswer);
    }
}
